<html>
<head><meta charset="utf-8"><title>rustc_xxx · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html">rustc_xxx</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209691428"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691428" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691428">(Sep 10 2020 at 18:46)</a>:</h4>
<p>Starting with nightly-2020-09-10, I can't get the compiler to accept things like "extern crate rustc_ast;". Is there a new component I have to install for that?</p>



<a name="209691481"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691481" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691481">(Sep 10 2020 at 18:47)</a>:</h4>
<p>Upgrading from 2020-09-09?</p>



<a name="209691524"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691524" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691524">(Sep 10 2020 at 18:47)</a>:</h4>
<p>Yes</p>



<a name="209691552"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691552" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691552">(Sep 10 2020 at 18:47)</a>:</h4>
<p>Hm, not sure then. It should work.. let me try it out locally.</p>



<a name="209691682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691682">(Sep 10 2020 at 18:48)</a>:</h4>
<p>It seems to work for me, what error are you getting? You have the rustc-dev component installed, right?</p>



<a name="209691758"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691758" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691758">(Sep 10 2020 at 18:49)</a>:</h4>
<p>I do. The error is simply error[E0463]: can't find crate for <code>rustc_ast</code></p>



<a name="209691830"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691830" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691830">(Sep 10 2020 at 18:49)</a>:</h4>
<p>If I reset to 2020-09-09 it compiles fine</p>



<a name="209691913"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691913" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691913">(Sep 10 2020 at 18:50)</a>:</h4>
<p>Does ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_ast-2219e989e9f3e6ed.rlib exist for you?</p>



<a name="209691930"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209691930" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209691930">(Sep 10 2020 at 18:50)</a>:</h4>
<p>or similar path if not on linux, possibly with different hashes</p>



<a name="209692250"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209692250" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209692250">(Sep 10 2020 at 18:53)</a>:</h4>
<p>ls ~/.rustup/toolchains/nightly-x86_64-apple-darwin/lib <br>
libLLVM.dylib                   librustc_macros-e53b17be2fd3129d.dylib<br>
libchalk_derive-08cd0387e5bf91b5.dylib      libstd-bc221c54ec897892.dylib<br>
librustc-nightly_rt.asan.dylib          libtest-1a2bc566e6b1c982.dylib<br>
librustc-nightly_rt.lsan.dylib          libtracing_attributes-6947091d4e5a7c62.dylib<br>
librustc-nightly_rt.tsan.dylib          rustlib<br>
librustc_driver-449b93665b4b4c27.dylib</p>



<a name="209692509"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209692509" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209692509">(Sep 10 2020 at 18:55)</a>:</h4>
<p>hermanv@hermanv-mbp libra % ls ~/.rustup/toolchains/nightly-2020-09-09-x86_64-apple-darwin/lib<br>
libLLVM.dylib                   librustc_macros-550e423f71690227.dylib<br>
libchalk_derive-0f8dfc31513a6952.dylib      libstd-f26b2ea870904f3b.dylib<br>
librustc-nightly_rt.asan.dylib          libtest-3612454ed59ce351.dylib<br>
librustc-nightly_rt.lsan.dylib          libtracing_attributes-daeae674b783c65a.dylib<br>
librustc-nightly_rt.tsan.dylib          rustlib<br>
librustc_driver-66a032760466a2e6.dylib<br>
hermanv@hermanv-mbp libra % ls ~/.rustup/toolchains/nightly-2020-09-10-x86_64-apple-darwin/lib<br>
libLLVM.dylib                   librustc_macros-550e423f71690227.dylib<br>
libchalk_derive-0f8dfc31513a6952.dylib      libstd-f26b2ea870904f3b.dylib<br>
librustc-nightly_rt.asan.dylib          libtest-3612454ed59ce351.dylib<br>
librustc-nightly_rt.lsan.dylib          libtracing_attributes-daeae674b783c65a.dylib<br>
librustc-nightly_rt.tsan.dylib          rustlib<br>
librustc_driver-66a032760466a2e6.dylib</p>



<a name="209692658"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209692658" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209692658">(Sep 10 2020 at 18:56)</a>:</h4>
<p>The lib directory doesn't matter, you need to ls the lib/rustlib/&lt;triple&gt;/lib/ directory</p>



<a name="209692771"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209692771" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209692771">(Sep 10 2020 at 18:56)</a>:</h4>
<p>e.g., try with <code>~/.rustup/toolchains/*/lib/rustlib/*/lib/librustc_ast*</code></p>



<a name="209692864"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209692864" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209692864">(Sep 10 2020 at 18:57)</a>:</h4>
<p>/Users/hermanv/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/x86_64-apple-darwin/lib/librustc_ast-3b3ed1ab334c6066.rlib</p>



<a name="209693636"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209693636" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209693636">(Sep 10 2020 at 19:01)</a>:</h4>
<p>then I don't know why it's not working :/</p>



<a name="209693648"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209693648" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209693648">(Sep 10 2020 at 19:01)</a>:</h4>
<p>are you sure you're running that nightly?</p>



<a name="209693843"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209693843" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209693843">(Sep 10 2020 at 19:03)</a>:</h4>
<p>hermanv@hermanv-mbp MIRAI % rustc --version                       <br>
rustc 1.48.0-nightly (e2be5f568 2020-09-09)</p>



<a name="209694019"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209694019" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209694019">(Sep 10 2020 at 19:04)</a>:</h4>
<p>I'll try on other machines and on Linux. Just wanted to check if this is a known issue with simple solution. Thanks for your help.</p>



<a name="209694296"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209694296" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209694296">(Sep 10 2020 at 19:06)</a>:</h4>
<p>What error do you get?</p>



<a name="209694320"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209694320" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209694320">(Sep 10 2020 at 19:06)</a>:</h4>
<p>Also, it would be helpful to know how you are invoking rustc</p>



<a name="209694736"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209694736" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209694736">(Sep 10 2020 at 19:10)</a>:</h4>
<p>I'm just using cargo build</p>



<a name="209694802"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209694802" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209694802">(Sep 10 2020 at 19:10)</a>:</h4>
<p>What error are you getting exactly?</p>



<a name="209694816"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209694816" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209694816">(Sep 10 2020 at 19:10)</a>:</h4>
<p>Can you run cargo +nightly build?</p>



<a name="209695368"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209695368" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209695368">(Sep 10 2020 at 19:15)</a>:</h4>
<p>cargo +nightly build gets past the error[E0463]: can't find crate for rustc_ast</p>



<a name="209695445"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209695445" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209695445">(Sep 10 2020 at 19:15)</a>:</h4>
<p>So, you're almost certainly not using nightly for cargo, which could be due to a number of other reasons. Maybe you have a rustup override or rustup-toolchain file or something. You can try to run cargo -vV</p>



<a name="209695734"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209695734" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209695734">(Sep 10 2020 at 19:18)</a>:</h4>
<p>hermanv@hermanv-mbp MIRAI % rustup override set nightly-2020-09-10<br>
info: using existing install for 'nightly-2020-09-10-x86_64-apple-darwin'<br>
info: override toolchain for '/Users/hermanv/CLionProjects/MIRAI' set to 'nightly-2020-09-10-x86_64-apple-darwin'</p>
<p>nightly-2020-09-10-x86_64-apple-darwin unchanged - rustc 1.48.0-nightly (e2be5f568 2020-09-09)</p>
<p>hermanv@hermanv-mbp MIRAI % cargo -vV                             <br>
cargo 1.48.0-nightly (875e01232 2020-09-08)<br>
release: 1.48.0<br>
commit-hash: <a href="https://github.com/rust-lang/rust/commit/875e0123259b0b6299903fe4aea0a12ecde9324f">875e0123259b0b6299903fe4aea0a12ecde9324f</a><br>
commit-date: 2020-09-08<br>
hermanv@hermanv-mbp MIRAI %</p>



<a name="209695995"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209695995" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209695995">(Sep 10 2020 at 19:20)</a>:</h4>
<p>This is weird:<br>
hermanv@hermanv-mbp MIRAI % cargo +nightly -vV                    <br>
cargo 1.47.0-nightly (1653f3546 2020-08-04)<br>
release: 1.47.0<br>
commit-hash: <a href="https://github.com/rust-lang/rust/commit/1653f354644834073d6d2541e27fae94588e685e">1653f354644834073d6d2541e27fae94588e685e</a><br>
commit-date: 2020-08-04</p>



<a name="209696135"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209696135" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209696135">(Sep 10 2020 at 19:21)</a>:</h4>
<p>Perhaps because of <a href="https://github.com/facebookexperimental/MIRAI/blob/master/rust-toolchain">https://github.com/facebookexperimental/MIRAI/blob/master/rust-toolchain</a>, though that does contain a slightly different version.</p>



<a name="209696480"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209696480" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209696480">(Sep 10 2020 at 19:24)</a>:</h4>
<p>I am not running against master.</p>



<a name="209696742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209696742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209696742">(Sep 10 2020 at 19:26)</a>:</h4>
<p>CI seems to work: <a href="https://travis-ci.com/github/facebookexperimental/MIRAI/jobs/383345412">https://travis-ci.com/github/facebookexperimental/MIRAI/jobs/383345412</a></p>



<a name="209696981"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209696981" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209696981">(Sep 10 2020 at 19:27)</a>:</h4>
<p>You may need to do something like rustup component add rustc-dev --toolchain nightly-2020-08-05</p>



<a name="209697842"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/rustc_xxx/near/209697842" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Herman Venter <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/rustc_xxx.html#209697842">(Sep 10 2020 at 19:33)</a>:</h4>
<p>It seems like I ran that before fixing up rust-toolchain. Things seem to work now. Thanks again. Let me go drink some coffee. :-)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>